package com.javalab._3object_oriented._6inner_class;

public class OuterClass {
    private boolean flag = true;

    private void abc() {
        System.out.println("abc");
    }

    class InnerClass {
        public void abc() {
            // 内部类可以访问外部类所有属性和方法
            System.out.println(flag);
            OuterClass.this.abc();
        }
    }

    // 静态内部类
    static class StaticInnerClass {

    }
}
